package com.onesports.intelligent.k12.polarlight.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import com.onesports.intelligent.k12.polarlight.annotation.SysDict;

/**
 * 班级状态枚举
 *
 * @author clw
 * @date 2022-07-11 10:33:15
 */
@SysDict(value = "班级状态",code = "ClassInfoStatus")
public enum ClassInfoStatusEnum implements IEnum<String> {

    /**
     * 拼班中
     */
    IN_CLASS("0","拼班中"),
    /**
     * 待开课(拼班完成)
     */
    FINISH_CLASS("1","待开课(拼班完成)"),
    /**
     * 拼班未成功
     */
    FAIL_CLASS("2","拼班未成功"),
    /**
     * 开班中
     */
    OPEN_CLASS("3","开班中"),
    /**
     * 解散(到期结课)
     */
    DISSOLVE_CLASS_EXPIRED("4","解散(到期结课)"),
    /**
     * 解散(团长解散)
     */
    DISSOLVE_CLASS_COLONEL("5","解散(团长解散)"),
    /**
     * 解散(人数不足)
     */
    DISSOLVE_CLASS_DEFICIENCY("6","解散(人数不足)"),
    ;
    private final String value;
    private final String desc;

    ClassInfoStatusEnum(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public String getValue() {
        return this.value;
    }

    @JsonValue
    public String getDesc() {
        return this.desc;
    }

}
